<?
require_once "../config/app.config.php";
$user = new UserBLL();
$user->AuthenticateUser($_REQUEST['email'], $_REQUEST['password']);

if (isset($_SESSION['SessionUser'])){
    $response = array (
    "success"=>true,
    "userID"=>$_SESSION['SessionUser']->getID()
    );
}
else
{
	$response = array (
    "success"=>false,
    "userID"=>"0000-00000000-00000000-0000-00000000"
    );
}
echo "(".json_encode($response).")";

?>
